package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.AgentiaPerformanceVerifyHistory;
import com.zhijian.medical.entity.vo.request.AgentiaPerformanceVerifyHistorySearchVo;
import com.zhijian.medical.entity.vo.response.AgentiaPerformanceVerifyHistoryVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AgentiaPerformanceVerifyHistoryMapper {
    int deleteByPrimaryKey(Long id);

    int insert(AgentiaPerformanceVerifyHistory record);

    int insertSelective(AgentiaPerformanceVerifyHistory record);

    AgentiaPerformanceVerifyHistory selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(AgentiaPerformanceVerifyHistory record);

    int updateByPrimaryKey(AgentiaPerformanceVerifyHistory record);

    int count(AgentiaPerformanceVerifyHistorySearchVo agentiaPerformanceVerifyHistorySearchVo);

    List<AgentiaPerformanceVerifyHistoryVo> selectList(AgentiaPerformanceVerifyHistorySearchVo agentiaPerformanceVerifyHistorySearchVo);

    AgentiaPerformanceVerifyHistoryVo selectVoById(Long id);

    int insertBatch(@Param("entities") List<AgentiaPerformanceVerifyHistory> entities);

    /**
     * 查询出某天最新数据的code
     *
     * @param day
     * @return
     */
    String selectMaxCodeByDay(String day);
}